﻿<Window x:Class="Ripple.TestClient.Views.MainView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:views="clr-namespace:Ripple.TestClient.Views"
         Title="{Binding Path=DisplayName}" Height="350" Width="525">
    <DockPanel>
        <Menu DockPanel.Dock="Top"  ItemsSource="{Binding Path=MenuItems}" />

        <Border BorderThickness="3" DockPanel.Dock="Top">
            <views:ActionBarView DataContext="{Binding ActionBarViewModel}" />
        </Border>

        <StatusBar DockPanel.Dock="Bottom" Background="LightGray">
            <StatusBarItem DockPanel.Dock="Right">
                <TextBlock Text="{Binding LoadTime}"  Grid.Column="2" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock Text="{Binding Status}" />
            </StatusBarItem>
        </StatusBar>

        <ContentControl Name="AccountContent" Visibility="{Binding AccountViewModel,Converter={StaticResource NullToVisibilityConverter}}">
            <Border BorderThickness="1" BorderBrush="DarkGray">
                <views:AccountView DataContext="{Binding AccountViewModel}" />
            </Border>
        </ContentControl>
    </DockPanel>
</Window>